package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {

    public Integer getUserListCount(User user);

    public List<User> selectUserListByPage(User user);

    public int removeByList(int [] ids);

    public Integer getAuthorityIdByUserId(Integer userId);

    public String getAuthorityNameByUserId(Integer userId);

    public int updateUserAuthorityByUser(User user);

}
